#ifndef __XBROADCASTER_HPP__
#define __XBROADCASTER_HPP__

class XBroadcaster : public PWSocket
{
public:
	XBroadcaster();
	virtual ~XBroadcaster();

public:
	void onEvent(PWIOPoll* io, int fd, int events);
	bool onReceive(void);
	size_t broadcast(const char* buf, size_t blen) const;

private:
	typedef std::set<intptr_t> cont_t;
	typedef cont_t::iterator cont_itr;
	typedef cont_t::const_iterator cont_citr;

private:
	static cont_t s_cont;
};

#endif//!__XBROADCASTER_HPP__

